﻿<%@ Control Language="C#" EnableViewState="true" %>
<%@ Register Assembly="Antu.WebControls" Namespace="Antu.WebControls" TagPrefix="CBW" %>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-image: url(<%= Antu.Core.Components.SiteSettings.DefaultSiteSettings.DefaultThemeFolderMapPath %>images/menuthb.png);
    margin-top: 1px">
    <tr>
        <td valign="middle" height="30">
            <font id="Font1" style="font-size: 14px; font-weight: bold; color: #3E7CC3; float: left;
                color: black; text-indent: 1em;" runat="server">角色维护 </font>
        </td>
    </tr>
</table>
<table class="window_tab_list" cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
    <tr>
        <td height="30" style="text-align: left">
            <img src="<%= Antu.Core.Components.SiteSettings.DefaultSiteSettings.DefaultThemeFolderMapPath %>images/arrowright.gif" align="absmiddle" />
            &nbsp;<a href="EditRole.aspx">添加角色</a>&nbsp;&nbsp;&nbsp;
             角色名:<asp:TextBox ID="rolname" runat="server"></asp:TextBox>
            <asp:Button ID="rolnamebtn" runat="server" Text="查 询" />
        </td>
    </tr>
</table>
<table class="window_tab_list" cellpadding="0" cellspacing="0" border="0" width="100%" align="center"
    style="margin-top: 3px">
    <tr>
        <th width="200px">
            角色名称
        </th>
        <th width="100px">
            用户管理
        </th>
        <th width="100px">
            权限管理
        </th>
        <th>
            描述
        </th>
        <th width="150px">
            操作
        </th>
    </tr>
    <CBW:MPRepeater ID="MPRepeaterList" runat="server">
        <EmptyDataTemplate>
            <tr>
                <td colspan="5">
                    暂无相关数据！
                </td>
            </tr>
        </EmptyDataTemplate>
        <ItemTemplate>
            <tr>
                <td>
                    <%#Eval("ROLENAME")%>
                </td>
                <td align="center">
                    <a href="SetRoleUser.aspx?id=<%#Eval("id") %>">设置用户</a>
                </td>
                <td align="center">
                    <a href="SetRoleMenu.aspx?id=<%#Eval("id") %>">设置权限</a>
                </td>
                <td>
                    <%#WebSys.UI.Control.ZhengShou.roleControl.TranString(Eval("MEMO"), 10)%>
                </td>
                <td align="center">
                    <a href="EditRole.aspx?action=edit&id=<%#Eval("id") %>">编辑</a>&nbsp;
                    <a href="EditRole.aspx?action=del&id=<%#Eval("id") %>" style='display: <%#Eval("ROLENAME").ToString()=="超级管理员"?"none":"" %>'>删除</a>
                </td>
            </tr>
        </ItemTemplate>
    </CBW:MPRepeater>
</table>
